package com.farm.service.impl;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.xml.ws.ServiceMode;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import com.farm.dao.UserDao;
import com.farm.service.UserService;
import com.farm.utils_all.HUtil;
import com.farm.utils_all.TimeUtils;
@Service("UserService")
public class UserServiceImpl implements UserService {

	@Autowired 
	private UserDao userDao;
	
	
	@Override
	public int insertUser(Map<String, Object> map) {
		System.out.println("创建用户 = "+map);
		int insertUser = userDao.insertUser(map);
		return insertUser;
	}

	@Override
	public int updateUser(Map<String, Object> map) {
		int updateUser = userDao.updateUser(map);
		return updateUser;
	}

	@Override
	public Map<String, Object> selectUserDetail(Map<String, Object> map) {
		Map<String, Object> userDetail = userDao.selectUserDetail(map);
		
		return userDetail;
	}

	
}
